﻿using MovingChameLibrary.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MovingChameLibrary.ViewModels
{
    public class TourScheduleViewModel : BaseViewModel
    {
        public TourScheduleViewModel(Schedule schedule)
        {
            this._selectedItem = schedule;
            this._group = schedule.Tour;
            this._items = schedule.Tour.Schedule.Items;
        }

        private Schedule _selectedItem;
        public Schedule SelectedItem
        {
            get { return this._selectedItem; }
            set { SetProperty(ref this._selectedItem, value, "SelectedItem"); }
        }

        private Tour _group;
        public Tour Group
        {
            get { return this._group; }
            set { SetProperty(ref this._group, value, "Group"); }
        }

        private CustomObservableCollection<Schedule> _items;
        public CustomObservableCollection<Schedule> Items
        {
            get { return this._items; }
            set { SetProperty(ref this._items, value, "Items"); }
        }
    }
}